package com.project.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.MouseBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 鼠害持久层
 */
public interface MouseDao extends BaseMapper<MouseBean> {
    /**
     * 分页显示所有鼠害信息
     * @return
     */
    List<MouseBean> findAllMouse();


    /**
     * 添加新鼠害
     * @param mouse
     */
    void addMouse(MouseBean mouse);


    /**
     * 根据鼠害id查询详细信息
     * @param mouseId
     * @return
     */
    MouseBean findId(@Param("mouseId") int mouseId);


    /**
     * 根据鼠害名称模糊查询鼠害信息
     * @param mouseName
     * @return
     */
    List<MouseBean> findName(@Param("mouseName")String mouseName);
}
